import request from '@/utils/request'

/**
 * 查询待办入会申请记录
 */

export function selectWaitAuditEnrollApprovalRecords(data) {
	return request({
		url: `/organization/enrollApprovalRecords/selectWaitAuditEnrollApprovalRecords`,
		method: 'POST',
		data: data
	})
}
/**
 * 查询通过/拒绝入会申请记录
 */

export function selectApprovalsPassed(data) {
	return request({
		url: `/organization/enrollApprovalRecords/selectFinishEnrollApprovalRecords`,
		method: 'POST',
		data: data
	})
}

/**
 * @param {Object} id
 * 根据id查询审批单
 */
export function selectWaitAuditEnrollApprovalRecordsQueryID(id) {
	return request({
		url: `/organization/enrollApprovalRecords/${id}`,
		method: 'GET',
	})
}
/**
 * @param {Object} id
 * 根据id查询审批单
 */
export function selectWaitAuditEnrollApprovalRecordsQueryselectById(id) {
	return request({
		url: `/organization/enrollApprovalRecords/getLog/${id}`,
		method: 'GET',
	})
}
/**
 * @param {Object} data
 * 提交入会审批
 */
export function updateApprovalStatus(data) {
	return request({
		url: `/organization/enrollApprovalRecords/upJoinUnionAudit`,
		method: 'POST',
		data: data
	})
}

/**
 * @param {Object} data
 * 提交转会审批
 */
export function updateApprovalStatusOptions(data) {
	return request({
		url: `/organization/transferApprovalRecords/upTransferUnionAudit`,
		method: 'POST',
		data: data
	})
}




/**
 * 查询待办转会申请记录
 */

export function selectWaitAuditTransferApprovalRecords(data) {
	return request({
		url: `/organization/transferApprovalRecords/selectWaitAuditTransferApprovalRecords`,
		method: 'POST',
		data: data
	})
}
/**
 * 查询通过/拒绝转会申请记录
 */

export function selectFinishEnrollApprovalRecords(data) {
	return request({
		url: `/organization/transferApprovalRecords/selectFinishEnrollApprovalRecords`,
		method: 'POST',
		data: data
	})
}

/**
 * @param {Object} id
 * 根据id查询审批单
 */
export function selectWaitAuditEnrollApprovalRecordsQueryIDs(id) {
	return request({
		url: `/organization/enrollApprovalRecords/${id}`,
		method: 'GET',
	})
}
/**
 * @param {Object} id
 * 根据id查询审批单
 */
export function selectWaitAuditEnrollApprovalRecordsQueryselectByIds(id) {
	return request({
		url: `/organization/enrollApprovalRecords/getLog/${id}`,
		method: 'GET',
	})
}
/**
 * @param {Object} data
 * 提交入会审批
 */
export function updateApprovalStatuss(data) {
	return request({
		url: `/organization/enrollApprovalRecords/upJoinUnionAudit`,
		method: 'POST',
		data: data
	})
}


/**
 * @param {Object} data
 * 查询转会详情页信息
 */
export function CheckTheTransferDetailsPage(id) {
	return request({
		url: `/organization/transferApprovalRecords/${id}`,
		method: 'get',
	})
}
/**
 * @param {Object} data
 * 查询转会详情页信息
 */
export function CheckTheTransferDetailsPageGetLog(id) {
	return request({
		url: `/organization/transferApprovalRecords/getLog/${id}`,
		method: 'get',
	})
}
